var page = sm("do_Page");
var app = sm("do_App");
var nf = sm("do_Notification");
var root = ui("$");
var aLayoutRoot = ui("aLayoutRoot");
//ui
var qqHttp = require("helper/http");
var userUrl = require("url/user");
//创建一个External对象
var external = sm("do_External");
var httpUrl = userUrl.url.help.detail;
//andriod返回键
page.on("back", function() {
  app.closePage();
});

var headerAout = ui("headerAout");
var addheader = headerAout.add("header", "source://view/reuse/header.ui", 0, 0);
//左上角-返回
var headerLeft = ui(addheader+".headerLeft");
headerLeft.on("touch", function() {
  app.closePage()
});

var labelTitle = ui(addheader+".labelTitle");
labelTitle.text = "常见问题";

var helpId;
page.on("loaded", function() {
	helpId=page.getData().helpId;
	loadPage();
});

var do_Label_Question=ui("do_Label_28");
var do_Label_Answer=ui("do_Label_80");
function loadPage(){
	qqHttp.post(httpUrl, {"id":helpId}, function(data) {
		if(null!=data.detail){
			do_Label_Question.text=data.detail.question;
			do_Label_Answer.text=data.detail.answer;
		}
	})
}



